package dsk.demo.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import dsk.demo.product.dto.SupplierQueryDto;
import dsk.demo.product.entity.SupplierEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SupplierDao extends BaseMapper<SupplierEntity> {

    IPage<SupplierEntity> selectSupplierByPage(Page<SupplierEntity> page, SupplierQueryDto dto);

    List<SupplierEntity> selectSupplierByKeyWord(String keyWord);
}
